import { request, config } from 'utils'

const { api } = config
const {
  ScadeDivisionWater,
  ScadeDivisionCopyrate,
  reportSumYearPay,
  sumCurrentMonthPay,
  reportIncoming,
  reportWaterUse,
  ScadeStationList,
} = api

export function queryDivisionWater(data) {
  return request({ url: ScadeDivisionWater, data, method: 'post' })
}

export function queryDivisionCopyrate(data) {
  return request({ url: ScadeDivisionCopyrate, data, method: 'post' })
}

export function querySumYearPay(params) {
  return request({ url: reportSumYearPay, params })
}

export function querySumCurrentMonthPay(params) {
  return request({ url: sumCurrentMonthPay, params })
}

export function queryIncoming(params) {
  return request({ url: reportIncoming, params })
}

export function queryWaterUse(params) {
  return request({ url: reportWaterUse, params })
}

export function queryStationList(data) {
  return request({ url: ScadeStationList, data, method: 'post' })
}
